import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '../views/Main.vue'
import Classify from '../views/Classify.vue'
import Order from '../views/Order.vue'
import My from '../views/My.vue'
import NotFount from '../views/NotFount.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/main'
  },
  {
    path: '/main',
    name: 'Main',
    component: Main
  },
  {
    path: '/classify',
    name: 'Classify',
    component: Classify
  },
  {
    path: '/order',
    name: 'Order',
    component: Order
  },
  {
    path: '/my',
    name: 'My',
    component: My
  },
  {
    path: '*',
    component:NotFount
  }
]

const router = new VueRouter({
  routes
})

export default router
